public class PC {

	public static int currentAddress = 0;

	public static void PCAlteration(boolean branch, boolean branch2,
			boolean jump, boolean isZero, int signExtend, int jumpAddress) {

		currentAddress += 4;

		if ((branch && isZero) || (branch2 && !isZero)) {

			currentAddress += (signExtend << 2); // this is correct

		} else if (jump) {
			// do some jumping like a boss DONE
			currentAddress &= 0xf0000000;
			jumpAddress = jumpAddress << 2;

			currentAddress = currentAddress | jumpAddress;
			System.out
					.println("did some jumping like a boss " + currentAddress);
		}

	}
}
